<?php
interface B2b_Models_Interface_Blog
{
    /**
    * Get latest blog to view list
    * @param: int $offset Is index of item
    * @param: in $count Is Count of item
    * @param: array $exp Search condition
    * @return: Tomato_Model_Recordset
    **/
    public function find($offset, $count, $exp = null);

    /**
     * Get total blog
     * @param: array $exp
     * @return int
    **/
    public function count($exp = null);

    /**
     * Get blog by id to view detail
     * @param: $exp
     * @return: Tomato_Model_Recordset
    **/
    public function getByIdNLang($exp = null);

    /**
     * Get blog by id
     * @param: ind $id Id of blog
     * @return: B2b_Models_Blog
    **/
    public function getById($id, $lang = null);

    /**
     * Add blog follow language
     * @param: B2b_Models_Blog $blog
     * @return: void
    **/
    public function add($blog);

    /**
     * Edit blog follow language
     * @param: B2b_Models_Blog $blog
     * @return: void
    **/
    public function update($blog);

    /**
     * Delete blog all language
     * @param: int $id Id of Blog
     * @return: void
    **/
    public function delete($id);
}
